//
//  imageCell.m
//  LoveLove
//
//  Created by 吴志强 on 2019/6/3.
//  Copyright © 2019 wkf. All rights reserved.
//

#import "imageCell.h"

@implementation imageCell

- (void) setview
{
    self.img = UIImageView.new;
    self.img.frame = CGRectMake(20, 20, [[UIScreen mainScreen] bounds].size.width-40, 200);
    self.img.contentMode = UIViewContentModeScaleAspectFit;
    [self.contentView addSubview:self.img];
}

- (void) setImg_url:(NSString *)img_url
{
    _img_url = img_url;

    [self.img sd_setImageWithURL:LLImageWithUrl(img_url) placeholderImage:[UIImage imageNamed:@"placeholder"] options:SDWebImageRefreshCached];
}

@end
